package vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.providers;

import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.AdaptedauiPackage;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.PresentationTemporalRelationship;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.TemporalOperator;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.UITemporalRelationship;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.expressions.AdaptedauiAbstractExpression;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.expressions.AdaptedauiOCLFactory;
import vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui.diagram.part.AdaptedauiDiagramEditorPlugin;

/**
 * @generated
 */
public class ElementInitializers {

	protected ElementInitializers() {
		// use #getInstance to access cached instance
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4001(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(1,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(2,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4002(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(4,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(5,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4003(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(7,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(8,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4004(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(10,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(11,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4005(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(13,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(14,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4006(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(16,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(17,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4007(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(19,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(20,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4008(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(22,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(23,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4009(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(25,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(26,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4010(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(28,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(29,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_UITemporalRelationship_4011(UITemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(31,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(32,
					AdaptedauiPackage.eINSTANCE.getUITemporalRelationship(),
					null).evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4015(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					34,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					35,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4016(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					37,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					38,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4017(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					40,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					41,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4018(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					43,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					44,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4019(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					46,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					47,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4020(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					49,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					50,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4021(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					52,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					53,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4022(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					55,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					56,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4023(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					58,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					59,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4024(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					61,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					62,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public void init_PresentationTemporalRelationship_4025(
			PresentationTemporalRelationship instance) {
		try {
			Object value_0 = AdaptedauiOCLFactory.getExpression(
					64,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);

			value_0 = AdaptedauiAbstractExpression.performCast(value_0,
					AdaptedauiPackage.eINSTANCE.getTemporalOperator());
			instance.setType((TemporalOperator) value_0);
			Object value_1 = AdaptedauiOCLFactory.getExpression(
					65,
					AdaptedauiPackage.eINSTANCE
							.getPresentationTemporalRelationship(), null)
					.evaluate(instance);
			instance.setLabel((String) value_1);
		} catch (RuntimeException e) {
			AdaptedauiDiagramEditorPlugin.getInstance().logError(
					"Element initialization failed", e); //$NON-NLS-1$						
		}
	}

	/**
	 * @generated
	 */
	public static ElementInitializers getInstance() {
		ElementInitializers cached = AdaptedauiDiagramEditorPlugin
				.getInstance().getElementInitializers();
		if (cached == null) {
			AdaptedauiDiagramEditorPlugin.getInstance().setElementInitializers(
					cached = new ElementInitializers());
		}
		return cached;
	}
}
